/**  
* @author renbangjie renbangjie@126.com  
* @date 2014-11-20 下午2:49:31
* @version V1.0  
* <b>Copyright (c)</b> 2014医信金融信息服务（上海）有限公司-版权所有<br/>
*/
package com.yjd.comm.user.service;

import com.yjd.comm.enums.ExtensionUserEnums.UserExtensionType;
import com.yjd.comm.enums.UserEnums.Channel;
import com.yjd.comm.user.model.UserModel;

/**
 * 人人推广注册
 * @author renbangjie renbangjie@126.com
 * @date 2014-11-20 下午2:49:31
 */
public interface IExtensionService extends ILoginService {

	/**
	 * 通过朋友分享文章链接注册
	* @param uModel
	* @param extension
	* @return UserModel
	 * @throws Exception 
	 */
	public UserModel urlRegister(String uName, String pwd, Long mpNumber, String ip, Long extension) throws Exception;
	
	/**
	 * 通过朋友分享注册链接注册
	* @param uModel 用户信息
	* @param pid 分享者
	* @param oid 文章id
	* @return UserModel
	 */
	public UserModel scanRegister(String uName, String pwd, Long mpNumber, String ip, Long pid, Integer oid, String relation) throws Exception;
	
	/**
	 * 微站注册调用接口
	 * TODO(这里描述这个方法的注意事项 – 可选).<br/> 
	 * 
	 * 返回:UserModel
	 * @exception
	 * @since JDK 1.7
	 */
	public UserModel mobileScanRegister(String uName, String pwd, Long mphoneNo, String ip,Long pid,Integer iod,Channel channel) throws Exception;
	/**
	 * 推广用户关联
	* @param idUser
	* @param pid
	* @param oid
	* void
	 * @throws Exception 
	 */
	public void initExtensionUser(Long idUser, Long pid, Integer oid, UserExtensionType extensionSource) throws Exception; 
	
}
